package com.alex.designPattern.decorator;

import com.alex.designPattern.AbstractDao;

/**
 * @author alex
 *
 */
public  class DaoDecorator extends AbstractDao {
	
	protected AbstractDao dao;

	@Override
	public Object getById() {
		if(dao != null){
			return dao.getById();
		}
		return null;
	}
	
	public DaoDecorator(AbstractDao dao){
		this.dao = dao;
	}
}
